<?php

/**
 * Open memcached server connection
 * 
 * @param string $host
 * @param integer $port
 * @param integer $timeout
 * 
 * @return void
 */
if(!function_exists('memcache_connect')) {
    function memcache_connect($host, $port = 0, $timeout = 0) {}
}

/**
 * Retrieve item from the server
 * 
 * @param Memcache $memcache_object
 * @param string $queueName
 * 
 * @return string
 */
if(!function_exists('memcache_get')) {
    function memcache_get($memcache_object, $queueName) {}
}

/**
 * 
 * @param Memcache $memcache_object
 * @param string $queueName
 * @param string $queueMessage
 * @param integer $flag
 * @param integer $expire
 * 
 * @return boolean 
 */
if(!function_exists('memcache_set')) {
    function memcache_set($memcache_object, $queueName, $queueMessage, $flag = 0, $expire = 0) {}
}

/**
 * Close memcache connection
 * 
 * @return void
 */
if(!function_exists('memcache_close')) {
    function memcache_close() {}
}

/**
 * Start xhprof profiler
 * 
 * @param integer $flag Optional flags to add additional information to the profiling. See the XHprof constants (http://www.php.net/manual/en/xhprof.constants.php) for further information about these flags, e.g., XHPROF_FLAGS_MEMORY to enable memory profiling.
 * @param array $options An array of optional options, namely, the 'ignored_functions' option to pass in functions to be ignored during profiling.
 * 
 * @retnull
 */
if(!function_exists('xhprof_enable')) {
    function xhprof_enable($flag = 0, $options = array()) {}
}

/**
 * Stops the profiler, and returns xhprof data from the run.
 * 
 * @return array An array of xhprof data, from the run.
 */
if(!function_exists('xhprof_disable')) {
    function xhprof_disable() {}
}

/**
 * 
 * Write log to scribe server
 * 
 * @param string $message
 * @param string $channel
 * @param string $host
 * @param integer $port
 * 
 * @return void
 */
if(!function_exists('scribelog')) {
    function scribelog($message, $channel, $host, $port) {}
}

if(!function_exists('thrift_protocol_write_binary')) {
    function thrift_protocol_write_binary() {}
}

if(!function_exists('thrift_protocol_read_binary')) {
    function thrift_protocol_read_binary() {}
}

if (!class_exists('HandlerSocket')) {
    /**
     * 
     * Handler Socket class
     * 
     * @author deathemperor
     *
     */
    class HandlerSocket
    {
        /**
         * 
         * @param string $host
         * @param string $port
         * 
         * @return HandlerSocket
         */
        public function __construct($host, $port, $options)
        {
            
        }
    }
}

if (!function_exists('apc_cache_info')) {
    /**
     * Retrieves cached information from APC's data store
     * 
     * @param string $cache_type
     * @param boolean $limited
     */
    function apc_cache_info($cache_type = 'system', $limited = false) {}
}
if (!function_exists('apc_clear_cache')) {
    /**
     * Clears the APC cache
     *
     * @param string $cache_type
     * @param boolean $limited
     */
    function apc_clear_cache($cache_type = 'system') {}
}